package com.lg.system.user.service;

import java.util.List;

import com.baomidou.mybatisplus.service.IService;
import com.lg.system.user.entity.UserRole;

/**
 * <p>
 * 用户与角色对应关系 服务类
 * </p>
 *
 * @author dl
 * @since 2018-03-23
 */
public interface UserRoleService extends IService<UserRole> {

	/**
	 * @param 根据用户的id查找其所有的角色Id
	 * @return
	 */
	List<Long> selectRoleIdByUId(Long userId);
	
	List<Long> selectUserIdByRId(Long roleId);
	
	boolean deleteByRoleId(Long roleId);
	
	boolean deleteByUserId(Long userId);
}
